package com.peas.platform.module.icims.base.mdm.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.mdm.adapter.repository.AnnounceRepository;
import com.peas.platform.module.icims.base.mdm.adapter.repository.po.AnnouncePo;
import com.peas.platform.module.icims.base.mdm.domain.AnnounceDomain;
import com.peas.platform.module.icims.base.mdm.dto.AnnounceDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class AnnounceDomainImpl extends BaseDomainImpl<AnnounceDto, AnnouncePo> implements AnnounceDomain {

    @Resource
    private AnnounceRepository announceRepository;

    @Override
    public BaseRepository<AnnouncePo> getMapper() {
        return announceRepository;
    }

    @Override
    public Class<? extends BaseRepository<AnnouncePo>> getRepositoryClass() {
        return AnnounceRepository.class;
    }

}
